#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <Function For PageViewer.au3>
#Include <GuiListView.au3>
#include <Date.au3>

If $bPageViewType <> 1 Then Exit 
$sLogFileName1 = 'PageViewer6'
Common_WriteCurrentFunctionNameToTempTXT($sLogFileName1)

PageViewer6_2_5()
PageViewer6_2_9() 
PageViewer6_2_10() 
PageViewer6_2_17() 
PageViewer6_2_23() 
PageViewer6_2_29() 
PageViewer6_2_30()
PageViewer6_2_31() 
PageViewer6_2_33() 
PageViewer6_2_34() 
PageViewer6_2_35() 
PageViewer6_2_36() 
PageViewer6_2_48() 
PageViewer6_2_49() 
PageViewer6_2_50() 
PageViewer6_2_51() 
PageViewer6_2_52() 
PageViewer6_2_54() 
PageViewer6_2_55() 
PageViewer6_2_56() 
PageViewer6_2_57() 
PageViewer6_2_58() 
PageViewer6_2_71() 
PageViewer6_2_72() 
PageViewer6_2_73() 
PageViewer6_2_74() 
PageViewer6_2_75() 
PageViewer6_2_76() 
PageViewer6_2_77() 
PageViewer6_2_79() 
PageViewer6_2_97() 
PageViewer6_2_98() 
PageViewer6_2_99() 
PageViewer6_2_103()
PageViewer6_2_104To117() 
PageViewer6_2_141() 
PageViewer6_2_143() 
PageViewer6_2_145() 
PageViewer6_2_146() 
PageViewer6_2_149() 
PageViewer6_2_151() 
PageViewer6_2_170() 
PageViewer7_1_1To18() 
PageViewer7_1_19To45() 
PageViewer7_1_47() 
PageViewer7_1_48()
PageViewer7_1_49() 
PageViewer7_1_50() 
PageViewer7_1_51()
PageViewer7_1_53() 
PageViewer7_1_54() 
PageViewer7_1_55() 
PageViewer7_1_56() 
PageViewer7_1_57() 
PageViewer7_1_63() 
PageViewer7_1_79() 
PageViewer7_2_2() 
PageViewer7_2_3() 
PageViewer7_2_4() 
PageViewer7_2_5() 
PageViewer7_2_6() 
PageViewer7_2_7()
PageViewer7_2_8() 
PageViewer7_2_9() 
PageViewer7_2_10() 
PageViewer7_2_12() 
PageViewer7_2_13() 
PageViewer7_2_14() 
PageViewer7_2_15() 
PageViewer7_2_16()
PageViewer7_2_17() 
PageViewer7_2_18() 
PageViewer7_2_19() 
PageViewer7_2_20() 
PageViewer7_2_21() 
PageViewer7_2_22() 
PageViewer7_2_25()
PageViewer7_2_26() 
PageViewer7_2_27() 
PageViewer7_2_28() 
PageViewer7_2_29() 
PageViewer7_2_30() 
PageViewer7_2_31() 
PageViewer7_2_32() 
PageViewer7_2_33() 
PageViewer7_2_34() 
PageViewer7_2_35() 
PageViewer7_2_36() 
PageViewer7_2_37To43() 
PageViewer7_2_44To50() 
PageViewer7_2_51() 
PageViewer7_2_52() 
PageViewer7_2_55() 
PageViewer7_2_56() 
PageViewer7_2_57() 
PageViewer7_2_58() 
PageViewer7_2_59() 
PageViewer7_2_61()
PageViewer7_2_62() 
PageViewer7_2_63()
PageViewer7_2_65() 
PageViewer7_2_67() 
PageViewer7_2_68() 
PageViewer7_2_69() 
PageViewer7_2_71() 
PageViewer7_2_72() 
PageViewer7_2_74() 
PageViewer7_2_75() 
PageViewer7_2_76() 
PageViewer7_2_81() 
PageViewer7_2_82() 
PageViewer7_2_83() 
PageViewer7_2_84() 
PageViewer7_2_86() 
PageViewer7_2_89() 
PageViewer7_2_91() 
PageViewer7_2_92() 
PageViewer7_2_93() 
PageViewer7_2_94() 
PageViewer7_2_95() 
PageViewer7_2_96() 
PageViewer7_2_97() 
PageViewer7_2_98() 
PageViewer7_2_102() 
PageViewer7_2_103() 
PageViewer7_2_104() 
PageViewer7_2_105() 
PageViewer7_2_106() 
PageViewer7_2_109() 
PageViewer7_2_112() 
PageViewer7_2_113() 
PageViewer7_3_1() 
PageViewer7_3_2() 
PageViewer7_3_3() 
PageViewer7_3_4() 
PageViewer7_3_5() 
PageViewer7_3_6() 
PageViewer7_3_7() 
PageViewer7_3_8() 
PageViewer7_3_9() 
PageViewer7_3_10To125() 
PageViewer7_3_132() 
PageViewer7_3_134() 
PageViewer7_3_135()
PageViewer7_3_138() 
PageViewer7_3_140() 
PageViewer7_3_141() 
PageViewer7_3_142() 
PageViewer7_3_143() 
PageViewer7_3_144() 
PageViewer7_3_145() 
PageViewer7_3_146() 
PageViewer7_3_148() 
PageViewer7_3_166() 
PageViewer7_3_167() 
PageViewer7_3_168() 
PageViewer7_3_169() 
PageViewer7_3_170() 
PageViewer7_3_171() 
PageViewer7_3_172() 
PageViewer8_1_1() 
PageViewer8_1_2() 
PageViewer8_1_3() 
PageViewer8_1_4() 
PageViewer8_1_5()
PageViewer8_1_6() 
PageViewer8_1_7() 
PageViewer8_1_8()
PageViewer8_1_9() 
PageViewer8_2_1()
PageViewer8_2_2() 
PageViewer8_2_3() 
PageViewer8_2_4() 
PageViewer8_2_5() 
PageViewer8_2_6() 
PageViewer8_2_7() 
PageViewer8_2_8() 
PageViewer8_2_9()
PageViewer8_2_10()
PageViewer8_2_12() 
PageViewer8_2_19() 
PageViewer8_2_20() 
PageViewer8_2_21() 
PageViewer8_2_22() 
PageViewer8_2_26()
PageViewer8_2_27() 
PageViewer8_3_5() 
PageViewer8_3_7() 
PageViewer8_3_8() 
PageViewer8_3_11() 
PageViewer8_3_13() 
PageViewer9_1_3()
PageViewer9_1_4() 
PageViewer9_1_5() 
PageViewer9_1_6() 
PageViewer9_1_7() 
PageViewer9_1_10() 
PageViewer9_1_11() 
PageViewer9_1_12() 
PageViewer9_1_17() 
PageViewer9_1_18() 
PageViewer9_1_19() 
PageViewer9_1_20() 
PageViewer9_1_21() 
PageViewer9_1_22()  
PageViewer9_1_23() 
PageViewer9_1_24() 
PageViewer9_1_25()  
PageViewer9_1_26() 
PageViewer9_1_27()
PageViewer9_1_28()
PageViewer9_1_29()  
PageViewer9_1_30() 
PageViewer9_1_31()  
PageViewer9_1_32()   
PageViewer9_1_33()  
PageViewer9_1_38() 
PageViewer9_1_39()  
PageViewer9_1_40()  
PageViewer9_1_41()  
PageViewer9_1_42()  
PageViewer9_1_43() 
PageViewer9_1_44()  
PageViewer9_1_45()  
PageViewer9_1_46() 
PageViewer9_1_47() 
PageViewer9_1_48()   
PageViewer9_1_49()  
PageViewer9_1_50()   
PageViewer9_1_51() 
PageViewer9_1_52()
PageViewer9_1_53()
PageViewer9_1_62() 
PageViewer9_1_63()  
PageViewer9_1_64()  
PageViewer9_1_65() 
PageViewer9_1_66() 
PageViewer9_1_67() 
PageViewer9_1_68() 
PageViewer9_1_69()  
PageViewer9_1_70()   
PageViewer9_1_71() 
PageViewer9_1_72() 
PageViewer9_1_73() 
PageViewer9_1_74() 
PageViewer9_1_75()
PageViewer9_1_76()  
PageViewer9_1_77()   

Func PageViewer6_2_5() 
	Local $TestCaseID = '6.2.5'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select the document, switch to page view,then click mouse righit key'
	Local $sStep3 = '3:'   &  'Click close on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.Allow user close whole file(No file open pageviwer)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	SelectCloseOnFileList()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_9() 
	Local $TestCaseID = '6.2.9'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select the Document,switch to Page View'
	Local $sStep3 = '3:'   &  'Add annotations on document' 
	Local $sStep4 = '4:'   &  'Click Hide annotations option from context menu'
	Local $sRes   = 'Res:' &  'Add annotations will hide(No annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickHightLightBtnInDocview()
	ClickShowAnnotationInContextMenu()
	MouseClickDrag('left',561, 320, 677, 424)
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer6_2_10() 
	Local $TestCaseID = '6.2.10'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select the Document,switch to Page View'
	Local $sStep3 = '3:'   &  'Add annotations on document' 
	Local $sStep4 = '4:'   &  'Click show annotations option from context menu'
	Local $sRes   = 'Res:' &  'Annotations will show(Has annotation)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickHightLightBtnInDocview()
	ClickShowAnnotationInContextMenu()
	ClickShowAnnotationInContextMenu()
	MouseClickDrag('left',561, 320, 677, 424)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_17() 
	Local $TestCaseID = '6.2.17'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select the Document,switch to Page View'
	Local $sStep3 = '3:'   &  'Click add audio option from context menu,Click record button' 
	Local $sStep4 = '4:'   &  'Click OK button'
	Local $sRes   = 'Res:' &  'Check when switch to thumbnail view,will appear audio icon'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not RecordAudioInFileProperties($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sFilePropertiesWndTitle) Then Return False	
	ExitPageViewerByClickCloseButton($hPageViewer)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_23() 
	Local $TestCaseID = '6.2.23'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'check ocr button tools bar.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'OCR button will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_29() 
	Local $TestCaseID = '6.2.29'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select word or text file ,then switch to page view'
	Local $sStep3 = '3:'   &  'In annotations bar,click add highlight button' 
	Local $sStep4 = '4:'   &  'In document,use mouse drag a region'
	Local $sRes   = 'Res:' &  '1.Check highlight the selected area 2.Check highlight color default is yellow'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickHightLightBtnInDocview()
	MouseClickDrag('left',561, 320, 677, 424)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_30() 
	Local $TestCaseID = '6.2.30'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select word or text file ,then switch to page view'
	Local $sStep3 = '3:'   &  'In document menu,click add highlight button' 
	Local $sStep4 = '4:'   &  'In document,use mouse drag a region'
	Local $sRes   = 'Res:' &  '1.Check highlight the selected area 2.Check highlight color default is yellow'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	AddHighlightInDociewFromMenu()
	MouseClickDrag('left',561, 320, 677, 424)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_31() 
	Local $TestCaseID = '6.2.31'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select PowerPoint file, then switcht to page view'
	Local $sStep3 = '3:'   &  'In annotations bar,Check add highlight button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'This  is no annotation bar.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PPT.ppt', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_33() 
	Local $TestCaseID = '6.2.33'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select word or text file ,then switch to page view'
	Local $sStep3 = '3:'   &  'In document menu,click add highlight button' 
	Local $sStep4 = '4:'   &  'In document,select a place,then in annotations bar,click add bookmarket button '
	Local $sRes   = 'Res:' &  'Check bookmarket will add'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickAddBookMarkBtnInDocview()
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_34() 
	Local $TestCaseID = '6.2.34'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose document folder"
	Local $sStep2 = '2:'   &  'Select word or text file ,then switch to page view'
	Local $sStep3 = '3:'   &  'In document menu,click add highlight button' 
	Local $sStep4 = '4:'   &  'In annotations bar,select a place,then in annotations bar,click add bookmarket button '
	Local $sRes   = 'Res:' &  'Check bookmarket will add'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	AddBookMarkInDociewFromMenu()
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_35() 
	Local $TestCaseID = '6.2.35'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'In document,select add highlight annotation'
	Local $sStep3 = '3:'   &  'In annotations bar,click clear highlight button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select highlight will clear'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickHightLightBtnInDocview()
	MouseClickDrag('left',461, 220, 577, 324)
	ClickClearHightLightBtnInDocview()
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_36() 
	Local $TestCaseID = '6.2.36'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'In document,select add bookmark annotation'
	Local $sStep3 = '3:'   &  'In annotations bar,click clear bookmark button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select highlight will clear'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	ClickAddBookMarkBtnInDocview()
	ClickClearBookMarkBtnInDocview()
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer6_2_48() 
	Local $TestCaseID = '6.2.48'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Click page menu-->Find in contents--->Find option'
	Local $sStep3 = '3:'   &  'In find dialog boxes,mark on "Match case" option, input can match text' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can search down find input text(The string of Date is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectMatchCaseForSearch()
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('Date')
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_49() 
	Local $TestCaseID = '6.2.49'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Click page menu-->Find in contents--->Find option'
	Local $sStep3 = '3:'   &  'In find dialog boxes,mark on  "Match case" option, input cant match text' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'PM will hint "The searched for text was not found!"'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectMatchCaseForSearch()
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('Date11')
	Common_SleepInSeconds(1)	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_50() 
	Local $TestCaseID = '6.2.50'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Click page menu-->Find in contents--->Find option'
	Local $sStep3 = '3:'   &  'In find dialog boxes,mark on "Match case" option, input match text' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can search down find input text(The string of BOOT is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectMatchCaseForSearch()
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('BOOT')
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_51() 
	Local $TestCaseID = '6.2.51'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Click edit menu-->Find in contents--->Find Next option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can find next match text(The second string of BOOT is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('boot')
	SearchNextMenu()
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_52() 
	Local $TestCaseID = '6.2.52'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Click edit menu-->Find in contents--->Find Prev option'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can find next match text(The first string of BOOT is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('boot')
	SearchNextMenu()
	SearchPrevieMenu()
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_54() 
	Local $TestCaseID = '6.2.54'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Push F3 on keyboard'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can find next match text(The second string of BOOT is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('boot')
	Send('{F3}')
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_55() 
	Local $TestCaseID = '6.2.55'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'Push Shift+F3 on keyboard'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check can find next match text(The first string of BOOT is highliht)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)	
	SearchInPDF('boot')
	SearchNextMenu()
	Send('+{F3}')
	MouseClickDrag('left',561, 420, 777, 524)
	Common_SleepInSeconds(0.5)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_56() 
	Local $TestCaseID = '6.2.56'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'add some annotation'
	Local $sStep3 = '3:'   &  'click save on context menu on work area.' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	AddBookMarkInDociewFromMenu()
	SaveAsFromContextMenu()
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	WinActivate($hPageViewer)
	Send('^f')   ;search
	Common_SleepInSeconds(0.5)
	For $i = 0 to 40
		Send('{DEL}')
	Next
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_57() 
	Local $TestCaseID = '6.2.57'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'add some annotation'
	Local $sStep3 = '3:'   &  'click save on context menu on file list.' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	AddBookMarkInDociewFromMenu()
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(0.5)
	Send('{DOWN}')
	Common_SleepInSeconds(0.2)
	Send('{DOWN}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_58() 
	Local $TestCaseID = '6.2.58'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose Document folder,Select the Document,switch to Page View"
	Local $sStep2 = '2:'   &  'add some annotation'
	Local $sStep3 = '3:'   &  'click save on file menu.' 
	Local $sStep4 = '4:'   &  'Click "Yes" button'
	Local $sRes   = 'Res:' &  'check edit results is display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',461, 220, 577, 324)
	AddBookMarkInDociewFromMenu()
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.2)
	Send('!f')
	Common_SleepInSeconds(0.5)
	Send('s')
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_71() 
	Local $TestCaseID = '6.2.71'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name empty' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_72() 
	Local $TestCaseID = '6.2.72'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Special character(-_@#$%)' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '6.2.72-_@#$%') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & '6.2.72-_@#$%' & '.bmp', $sCorrectResultPath & '6.2.72-_@#$%' & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_73() 
	Local $TestCaseID = '6.2.73'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?<>|') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_74() 
	Local $TestCaseID = '6.2.74'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, ' ') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_75() 
	Local $TestCaseID = '6.2.75'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in middle of name' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '6.2.   75') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & '6.2.   75' & '.bmp', $sCorrectResultPath & '6.2.   75' & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_76() 
	Local $TestCaseID = '6.2.76'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in end of name' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID & '       ') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_77() 
	Local $TestCaseID = '6.2.77'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sLONGEST_FILE_NAME) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_79() 
	Local $TestCaseID = '6.2.79'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Existed name' 
	Local $sStep4 = '4:'   &  'Click Save button'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'BMP.bmp') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_97() 
	Local $TestCaseID = '6.2.97'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button' 
	Local $sStep4 = '4:'   &  'Select Compression table and save with default value'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_98() 
	Local $TestCaseID = '6.2.98'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button' 
	Local $sStep4 = '4:'   &  'Select Compression table and save with default value'
	Local $sRes   = 'Res:' &  'Select Compression table and save with Max high compression'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')	
	If Not ClickSaveAs_PropertyBtn($TestCaseID, $sLogFileName1) Then Return False
	If Not SetJPGMaxHighCompression($TestCaseID, $sLogFileName1) Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_99() 
	Local $TestCaseID = '6.2.99'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button' 
	Local $sStep4 = '4:'   &  'Select Compression table and save with default value'
	Local $sRes   = 'Res:' &  'Select Compression table and save with Max high qualilty'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')	
	If Not ClickSaveAs_PropertyBtn($TestCaseID, $sLogFileName1) Then Return False
	If Not SetJPGMaxHighQualilty($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer6_2_103() 
	Local $TestCaseID = '6.2.103'
	Local $sStep1 = '1:'   &  "Launch PM and select a document In page view."
	Local $sStep2 = '2:'   &  'Open the Save as window with context menu on file list.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(0.5)
	Send('{DOWN}')
	Common_SleepInSeconds(0.2)
	Send('{DOWN}')
	Common_SleepInSeconds(0.2)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	Common_SetSaveAsFormat('JPEG(*.JPG)')	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_104To117() 
	For $i = 0 to 13
		Local $TestCaseID = '3.2.' & (104 + $i) 
		Local $sStep1 = '1:'   &  "Installed PM and all necessary componet successfully."
		Local $sStep2 = '2:'   &  'Select document file, click "Save as" button'
		Local $sStep3 = '3:'   &  'Format select ' & $avImageSaveAsFormat[$i]
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'The saved file is color,BMP file and the content should be right.'
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		Common_SleepInSeconds(1.5)
		If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
		Common_SetSaveAsFormat($avImageSaveAsFormat[$i])	
		Local $iSaveAsTime = 2, $sFormat = Common_GetSaveAsFormat($avImageSaveAsFormat[$i])
		If StringInStr($avImageSaveAsFormat[$i], 'txt') or StringInStr($avImageSaveAsFormat[$i], 'rtf') or StringInStr($avImageSaveAsFormat[$i], 'htm') Then
			$iSaveAsTime = 30
		EndIf
		If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
		If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', $iSaveAsTime) Then Return False
		If Common_CompareFile($sPerformResultPath & $TestCaseID & $sFormat, $sCorrectResultPath & $TestCaseID & $sFormat) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next	
EndFunc

Func PageViewer6_2_141() 
	Local $TestCaseID = '6.2.141'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save all files as"dialog will pop up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sCommonWndClass, $sSaveAsWndText, 1136)
	Common_SleepInSeconds(0.3)
	Send('{ESC}')
	Common_SleepInSeconds(0.3)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sCommonWndClass, $sSaveAsWndText, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_143() 
	Local $TestCaseID = '6.2.143'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'Change the File Name empty' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_145() 
	Local $TestCaseID = '6.2.145'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?"<>|') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_146() 
	Local $TestCaseID = '6.2.146'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, ' ') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_149() 
	Local $TestCaseID = '6.2.149'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sLONGEST_FILE_NAME) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer6_2_151() 
	Local $TestCaseID = '6.2.151'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Existed name' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer6_2_170() 
	Local $TestCaseID = '6.2.170'
	Local $sStep1 = '1:'   &  "Launch PM and select document switch to page view."
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  'click property button on on "save as type "option.' 
	Local $sStep4 = '4:'   &  'select PDF file on "save all files as"dialog.click save button.'
	Local $sRes   = 'Res:' &  'save pdf options dialog will pops up.(The image is Preferences dialog)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'TXT.TXT', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'VSS.VSS', $TestCaseID, $sLogFileName1) Then Return False
	If Not SelectMergePDFFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False	 
	ControlClick($sSaveAllFilesAsWnd, '', 1021)    ;Property... button
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPreferencesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_1To18() 
	For $i = 0 To 17
		Local $TestCaseID = '7.1.' & (1 + $i) 
		Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
		Local $sStep2 = '2:'   &  $avSample[$i]
		Local $sStep3 = '3:'   &  'Click OCR button on Tools bar' 
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'It will switch to OCR view and do OCR process,the OCR result will display correctly.'
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & $avSample[$i], $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		Common_SleepInSeconds(1)
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(1)
		ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
		Common_SleepInSeconds(30)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer7_1_19To45() 
	For $i = 0 To 25
		If $i >= 2 Then
			Local $TestCaseID = '7.1.' & (19 + $i + 1) 
		Else
			Local $TestCaseID = '7.1.' & (19 + $i) 
		EndIf
		Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
		Local $sStep2 = '2:'   &  $avSample_2[$i]
		Local $sStep3 = '3:'   &  'Click OCR button on Tools bar' 
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'OCR button is dim.PM will not switch to OCR pageview.'
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & $avSample_2[$i], $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		Common_SleepInSeconds(1)
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(1)
		If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPMHandle, '', $sOCRButtonInToolbarCtrInfo), '', $TestCaseID, $sLogFileName1) Then Return False
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer7_1_47() 
	Local $TestCaseID = '7.1.47'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'x' on 'OCR view' window'"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is thumbnail)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickOCRViewXButtonOnTaskPaneInPageviewer()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer7_1_48() 
	Local $TestCaseID = '7.1.48'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Exit' on File menu of 'OCR view' window"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is thumbnail)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerFromFileMenu($hPageViewer)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_49() 
	Local $TestCaseID = '7.1.49'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Go to PM' on Tools bar"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is thumbnail)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerByClickBackButton($hPageViewer)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_50() 
	Local $TestCaseID = '7.1.50'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Back to PM' on File menu of 'OCR view' window"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is thumbnail)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerByClickBackMenu($hPageViewer)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_51() 
	Local $TestCaseID = '7.1.51'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  "Right click content menu,to select 'Switch view to->OCR view'"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will switch to OCR view and do OCR process,the OCR result will display correctly."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right") 
	Common_SleepInSeconds(0.5)
	SwitchToOCRViewFromContextMenu()
	Common_SleepInSeconds(30)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_53() 
	Local $TestCaseID = '7.1.53'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'x' on 'OCR view' window'"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is listview)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickOCRViewXButtonOnTaskPaneInPageviewer()
	Common_UnselectDateColumnInListView($hPMHandle)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_54() 
	Local $TestCaseID = '7.1.54'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Exit' on File menu of 'OCR view' window"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is listview)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerFromFileMenu($hPageViewer)
	Common_UnselectDateColumnInListView($hPMHandle)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_55() 
	Local $TestCaseID = '7.1.55'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Go to PM' on Tools bar"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is listview)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerByClickBackButton($hPageViewer)
	Common_UnselectDateColumnInListView($hPMHandle)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_56() 
	Local $TestCaseID = '7.1.56'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'Click OCR on Tools bar,it will switch to OCR view'
	Local $sStep3 = '3:'   &  "Click 'Back to PM' on File menu of 'OCR view' window"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "Click 'x' on 'OCR view' window(The image is listview)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ExitPageViewerByClickBackMenu($hPageViewer)
	Common_UnselectDateColumnInListView($hPMHandle)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_57() 
	Local $TestCaseID = '7.1.57'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  "Right click content menu,to select 'Switch view to->OCR view'"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will switch to OCR view and do OCR process,the OCR result will display correctly."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right") 
	Common_SleepInSeconds(0.5)
	SwitchToOCRViewFromContextMenu()
	Common_SleepInSeconds(30)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_63() 
	Local $TestCaseID = '7.1.63'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Tile view,select the selected format."
	Local $sStep2 = '2:'   &  "Right click content menu,to select 'Switch view to->OCR view'"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will switch to OCR view and do OCR process,the OCR result will display correctly."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToTitleViewButtonInCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "right") 
	Common_SleepInSeconds(0.5)
	SwitchToOCRViewFromContextMenu()
	Common_SleepInSeconds(30)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_1_79() 
	Local $TestCaseID = '7.1.79'
	Local $sStep1 = '1:'   &  "Launch PageManger,select the selected image file ,double click it,select open by 'PM Pageviewr'."
	Local $sStep2 = '2:'   &  "Click OCR button on Tools bar"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will  do OCR process,the OCR result will display correctly."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToTitleViewButtonInCtrInfo)
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left", False, 3) 
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickOCRButtonInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_2() 
	Local $TestCaseID = '7.2.2'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "click open on file menu to open image file."
	Local $sStep3 = '3:'   &  "open image,pdf,document files"
	Local $sStep4 = '4:'   &  'click open'
	Local $sRes   = 'Res:' &  "view file list will display correctly.(The image is PDF-Single page.pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_3() 
	Local $TestCaseID = '7.2.3'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "vIt will do OCR process and display the correctly OCR view.The thumbnail list will be selected.(The image is OCR2.TIF)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'OCR2.TIF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(25)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_4() 
	Local $TestCaseID = '7.2.4'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  "open a image.select other image on file list."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "vIt will do OCR process and display the correctly OCR view.The thumbnail list will be selected.(The image is OCR2.TIF)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'OCR2.TIF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(25)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_5() 
	Local $TestCaseID = '7.2.5'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  "click right-key on file list."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as","Print","delete","properties" will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(0.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_6() 
	Local $TestCaseID = '7.2.6'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  "open document,PDF file,select other document,PDF on file list."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "view file list will display correctly.(The image is PDF-Single page.pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(30)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer7_2_7() 
	Local $TestCaseID = '7.2.7'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  "click down button on keyboard."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will do OCR process and display the correctly OCR view.The thumbnail list will be selected.(The image is OCR2.TIF)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'OCR2.TIF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(20)	
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(2)	
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(2)	
	Send('{UP}')
	Common_SleepInSeconds(2.5)
	Send('{DOWN}')
	Common_SleepInSeconds(2.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_8() 
	Local $TestCaseID = '7.2.8'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a file on file list."
	Local $sStep3 = '3:'   &  "click up button on keyboard."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "It will do OCR process and display the correctly OCR view.The thumbnail list will be selected.(The image is OCR.jpg)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'OCR2.TIF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(20)	
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(2)	
	SelectFileInFileListForPageViewer(2, 'left')
	Common_SleepInSeconds(2)	
	Send('{UP}')
	Common_SleepInSeconds(2.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_9() 
	Local $TestCaseID = '7.2.9'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a single page  file on thumbnail list"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected.(The image is OCR.jpg)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_10() 
	Local $TestCaseID = '7.2.10'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a single page  file on thumbnail list"
	Local $sStep3 = '3:'   &  "click right-key on file list."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as",""Print"","delete page"will be display.The"delete page" will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(0.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_12() 
	Local $TestCaseID = '7.2.12'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a single page  file on thumbnail list"
	Local $sStep3 = '3:'   &  "check tool  bar for page editbox."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_13() 
	Local $TestCaseID = '7.2.13'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "select a Multiple page TIFF on thumbnail list"
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected.(The image is OCR.jpg)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_14() 
	Local $TestCaseID = '7.2.14'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "Drag and drop to move the order of page."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected.(The image is OCR.jpg)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left', 161, 178, 161, 548)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer7_2_15() 
	Local $TestCaseID = '7.2.15'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  "click right-key on file list."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as",""Print"","delete page"will be display.The"delete page" will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(0.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer7_2_16() 
	Local $TestCaseID = '7.2.16'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click "delete page on current page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the current page will be move.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickFileThumbnailInPageViwer(1, 'right')
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(20)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_17() 
	Local $TestCaseID = '7.2.17'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click Next Page on view menu.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('n')
	Common_SleepInSeconds(20)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_18() 
	Local $TestCaseID = '7.2.18'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click Next Page on view menu.'
	Local $sStep3 = '3:'   &  "Click Previous Page on view menu."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('n')
	Common_SleepInSeconds(20)
	OpenViewGoToMenu()
	Send('p')
	Common_SleepInSeconds(2)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_19() 
	Local $TestCaseID = '7.2.19'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click Last Page on view menu.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('l')
	Common_SleepInSeconds(20)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_20() 
	Local $TestCaseID = '7.2.20'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click Last Page on view menu.'
	Local $sStep3 = '3:'   &  "Click First Page on view menu."
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('l')
	Common_SleepInSeconds(20)
	OpenViewGoToMenu()
	Send('f')
	Common_SleepInSeconds(2)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_21() 
	Local $TestCaseID = '7.2.21'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click next page arrow for page editbox.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickNextPageBtnInPageviewer()
	Common_SleepInSeconds(20)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_22() 
	Local $TestCaseID = '7.2.22'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click Previous page arrow for page editbox.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  "the work area will be display correctly.The thumbnail list will be selected."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickNextPageBtnInPageviewer()
	Common_SleepInSeconds(20)
	ClickPreviousPageBtnInPageviewer()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer7_2_25() 
	Local $TestCaseID = '7.2.25'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input "0" on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('0')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_26() 
	Local $TestCaseID = '7.2.26'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input blank on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('{BACKSPACE}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_27() 
	Local $TestCaseID = '7.2.27'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input space on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('{SPACE}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_28() 
	Local $TestCaseID = '7.2.28'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input string on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('ab')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_29() 
	Local $TestCaseID = '7.2.29'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input decimals on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('0.5')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_30() 
	Local $TestCaseID = '7.2.30'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input special string on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('?>')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_31() 
	Local $TestCaseID = '7.2.31'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input more than max page on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('3')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_32() 
	Local $TestCaseID = '7.2.32'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input corrent page on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('1')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_33() 
	Local $TestCaseID = '7.2.33'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'input correct page on edit box on tools bar for view page.'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'OCR_MutiPageTif.tif', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('2')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(20)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_34() 
	Local $TestCaseID = '7.2.34'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Check the Font'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_35() 
	Local $TestCaseID = '7.2.35'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Check the Layout'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_36() 
	Local $TestCaseID = '7.2.36'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Check the Scroll bar'
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer7_2_37To43() 
	For $i = 1 to 7   
		If $i = 1 Then
			$sSize = '1/2'
		ElseIf $i = 2 Then
			$sSize = '1/3'
		ElseIf $i = 3 Then
			$sSize = '1/4'
		ElseIf $i = 4 Then
			$sSize = '1/5'
		ElseIf $i = 5 Then
			$sSize = '1/6'
		ElseIf $i = 6 Then
			$sSize = '1/7'
		ElseIf $i = 7 Then
			$sSize = '1/8'
		EndIf
		Local $TestCaseID = '7.2.' & 36 + $i
		Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
		Local $sStep2 = '2:'   &  'Click view menu-->zoom->zoom out'
		Local $sStep3 = '3:'   &  "Select " & $sSize
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  '1.Check "zoom out--> " ' & $sSize & ' will select 2.The image will zoom out ' & $sSize
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		Common_SleepInSeconds(0.5)
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(0.5)
		ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
		Common_SleepInSeconds(20)	
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		MouseClick('left',672, 391,2)
		ZoomOutInPageViwer($sSize)
		Common_SleepInSeconds(1)
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)
	Next	
EndFunc

Func PageViewer7_2_44To50() 
	For $i = 1 to 7   
		If $i = 1 Then
			$sSize = 'x2'
		ElseIf $i = 2 Then
			$sSize = 'x3'
		ElseIf $i = 3 Then
			$sSize = 'x4'
		ElseIf $i = 4 Then
			$sSize = 'x5'
		ElseIf $i = 5 Then
			$sSize = 'x6'
		ElseIf $i = 6 Then
			$sSize = 'x7'
		ElseIf $i = 7 Then
			$sSize = 'x8'
		EndIf	
		Local $TestCaseID = '7.2.' & 43 + $i
		Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
		Local $sStep2 = '2:'   &  'Click view menu-->zoom->zoom out'
		Local $sStep3 = '3:'   &  "Select " & $sSize
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  '1.Check "zoom out--> " ' & $sSize & ' will select 2.The image will zoom out ' & $sSize
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		Common_SleepInSeconds(0.5)
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(0.5)
		ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
		Common_SleepInSeconds(20)	
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		MouseClick('left',672, 391,2)
		ZoomInInPageViwer($sSize)
		Common_SleepInSeconds(1)
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)
	Next	
EndFunc

Func PageViewer7_2_51() 
	Local $TestCaseID = '7.2.51'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click zoom out button from status  bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom out'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	For $i = 0 to 10
		ClickZoomOutBtnInPageViwerStatusBar()
	Next
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_52() 
	Local $TestCaseID = '7.2.52'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click zoom in button from status  bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom in'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	For $i = 0 to 10
		ClickZoomInBtnInPageViwerStatusBar()
	Next
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_55() 
	Local $TestCaseID = '7.2.55'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'D&D scroll bar on from status  bar  to max.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom out'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Max')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_56() 
	Local $TestCaseID = '7.2.56'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'D&D scroll bar on from status  bar  to min.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom in.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_57() 
	Local $TestCaseID = '7.2.57'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->actual size'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will actual size.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(1)
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('a')  ;actual size
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_58() 
	Local $TestCaseID = '7.2.58'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->fit to width.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to width.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(1)
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('w')  ;fit to width.
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_59() 
	Local $TestCaseID = '7.2.59'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->fit to page'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to page.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(1)
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('p')  ;fit to page
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_61() 
	Local $TestCaseID = '7.2.61'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click fit to width  from status  bar '
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to width.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(1)
	ClickFitToWidthButtonInPageviewer()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_62() 
	Local $TestCaseID = '7.2.62'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click fit to page  from status  bar '
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to page.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar_('Min')
	Common_SleepInSeconds(1)
	ClickFitToPageButtonInPageviewer()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer7_2_63() 
	Local $TestCaseID = '7.2.63'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click single page on status bar.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'this item will be dim.(single page button on status bar is dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_65() 
	Local $TestCaseID = '7.2.65'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click Continuous View on status bar.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'this item will be dim.(single page button on status bar is dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_67() 
	Local $TestCaseID = '7.2.67'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Check the Font on preview windows.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPreviewWnd), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_68() 
	Local $TestCaseID = '7.2.68'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Check the Scroll bar on preview windows.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPreviewWndScroolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_69() 
	Local $TestCaseID = '7.2.69'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Drag and drop preview window'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will move and display the correct content.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',612, 791,612, 591)
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPreviewWnd), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_71() 
	Local $TestCaseID = '7.2.71'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Drag the scroll bar on preview windows.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',252, 901,252, 1001)
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPreviewWnd), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_72() 
	Local $TestCaseID = '7.2.72'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'double click preview windows tab'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('left',623, 800, 4)
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, 'Preview Window', '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_74() 
	Local $TestCaseID = '7.2.74'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'check context menu on preview windows tab.'
	Local $sStep3 = '3:'   &  'check out docking on context menu.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'docking status will be disappeared.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, 'Preview Window', '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_75() 
	Local $TestCaseID = '7.2.75'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin floating on   preview windows tab.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, 'Preview Window', '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_76() 
	Local $TestCaseID = '7.2.76'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin hide on context menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(No preview window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_81() 
	Local $TestCaseID = '7.2.81'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view.checkin floating on context menu."
	Local $sStep2 = '2:'   &  'check context menu on preview windows'
	Local $sStep3 = '3:'   &  'check out docking on context menu'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating will be disappeared.(preview window is docking style)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	MouseClick('right',425, 98)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)	
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)	
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_82() 
	Local $TestCaseID = '7.2.82'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view.checkin floating on context menu."
	Local $sStep2 = '2:'   &  'checkin docking on preview windows'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(preview window is docking style)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	MouseClick('right',425, 98)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)	
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)	
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_83() 
	Local $TestCaseID = '7.2.83'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view.checkin floating on context menu."
	Local $sStep2 = '2:'   &  'double click  preview windows on top of  preview windows'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(preview window is docking style)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	MouseClick('left',425, 98,4)
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_84() 
	Local $TestCaseID = '7.2.84'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view.checkin floating on context menu."
	Local $sStep2 = '2:'   &  'click X on task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(No preview window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('right',623, 800)
	Common_SleepInSeconds(1)
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(2)
	MouseClick('left',632, 100)
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_86() 
	Local $TestCaseID = '7.2.86'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"image size","image type","resulution","file size","fit to page","fit to width","single page","Continuous View","zoom silder" will display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_89() 
	Local $TestCaseID = '7.2.89'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"select tools","OCR" will display.The UI will display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_91() 
	Local $TestCaseID = '7.2.91'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'check context menu on task pane.'
	Local $sStep3 = '3:'   &  'check out docking on  task pane.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'docking status will be disappeared.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_92() 
	Local $TestCaseID = '7.2.92'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin floating on  task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_93() 
	Local $TestCaseID = '7.2.93'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'double click task pane on top of task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickTaskPane()
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_94() 
	Local $TestCaseID = '7.2.94'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	HideTaskPaneInPageviewer()
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_95() 
	Local $TestCaseID = '7.2.95'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'click "X" on task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(No annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickXButtonOnTaskPaneInPageviewer()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_96() 
	Local $TestCaseID = '7.2.96'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkout task pane on view menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(No annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('left',672, 391,2)
	ClickViewEditToolsMenu()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_97() 
	Local $TestCaseID = '7.2.97'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkout task pane on view menu.'
	Local $sStep3 = '3:'   &  'checkin task pane on view menu.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(Has annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('left',672, 391,2)
	ClickViewEditToolsMenu()
	ClickViewEditToolsMenu()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_98() 
	Local $TestCaseID = '7.2.98'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin "auto hide" on  task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(NO annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RightClickTaskPane()
	AutoHideTaskPane()
	Common_SleepInSeconds(3)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_102() 
	Local $TestCaseID = '7.2.102'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'check context menu on task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check out docking on  task pane.(Has annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(1)
	MouseClickFloatingTaskPane('right',1)
	DockFloatedTaslPane()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_103() 
	Local $TestCaseID = '7.2.103'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin docking on  task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(Has annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(1)
	MouseClickFloatingTaskPane('right',1)
	DockFloatedTaslPane()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_104() 
	Local $TestCaseID = '7.2.104'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'double click task pane on top of task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(Has annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(1)
	DoubleClickFolatedTaskPane()
	Common_SleepInSeconds(1)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_105() 
	Local $TestCaseID = '7.2.105'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(NO annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(1)
	MouseClickFloatingTaskPane('right',1)
	HideFloatingTaskpane()
	Common_SleepInSeconds(2)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_106() 
	Local $TestCaseID = '7.2.106'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  'checkin task pane on view menu.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(Has annotation bar)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_SleepInSeconds(1)
	MouseClickFloatingTaskPane('right',1)
	HideFloatingTaskpane()
	Common_SleepInSeconds(0.5)
	MouseClick('left',672, 391,2)
	Common_SleepInSeconds(0.5)
	ClickViewEditToolsMenu()	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_109() 
	Local $TestCaseID = '7.2.109'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click properties option from context menu'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_112() 
	Local $TestCaseID = '7.2.112'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click properties option from file menu'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('left',672, 391,2)
	OpenFilePropertiesFromFileMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_2_113() 
	Local $TestCaseID = '7.2.113'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a image file switch to ocr view."
	Local $sStep2 = '2:'   &  'Click properties option from file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Send('{UP}')
	Common_SleepInSeconds(0.3)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_1() 
	Local $TestCaseID = '7.3.1'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check annotation bar status:1.Place character before the selection (Dim)2.Place character after the selection (Dim)3.Delete(Dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer7_3_2() 
	Local $TestCaseID = '7.3.2'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'In OCR View,select character,click Place character before the selection button from annotation bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check in select character before will add space'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		ClickDeleteCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	For $i = 0 to 5
		ClickAddBeforeCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_3() 
	Local $TestCaseID = '7.3.3'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'click Place character before the selection button from ocr menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check in select character before will add space'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		ClickDeleteCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	For $i = 0 to 5
		 AddBeforeCurrentCharMenuInOCRView()
	Next
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_4() 
	Local $TestCaseID = '7.3.4'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'In OCR View,select character,click Place character after the selection button from annotation bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check in select character after will add space'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		ClickDeleteCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	For $i = 0 to 5
		ClickAddAfterCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_5() 
	Local $TestCaseID = '7.3.5'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'In OCR View,select character,click Place character after the selection button from ocr menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check in select character before will add space'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		ClickDeleteCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	For $i = 0 to 5
		AddAfterCurrentCharMenuInOCRView()
	Next
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_6() 
	Local $TestCaseID = '7.3.6'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'In OCR View,select character,click delete button from annotation bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select character will delete'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		ClickDeleteCurrentCharBtnInOCRView()
		Common_SleepInSeconds(0.2)
	Next
	Common_SleepInSeconds(0.8)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer7_3_7() 
	Local $TestCaseID = '7.3.7'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'In OCR View,select character,click delete button from ocr menu'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check select character will delete'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickSelectBtnInOCRView()
	MouseClick('left',441, 155)
	For $i = 0 to 5
		DeleteCurrentCharMenuInOCRView()
	Next
	Common_SleepInSeconds(0.8)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_8() 
	Local $TestCaseID = '7.3.8'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'Click preference on file menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'preference will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClick('left',800,279)
	Common_SleepInSeconds(0.5)
	Send('!f')
	Common_SleepInSeconds(0.5)
	Send('{UP}')
	Common_SleepInSeconds(0.3)
	Send('{UP}')
	Common_SleepInSeconds(0.3)	
	Send('{UP}')
	Common_SleepInSeconds(0.3)		
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPreferencesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_9() 
	Local $TestCaseID = '7.3.9'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to Page View"
	Local $sStep2 = '2:'   &  'Click preference on tools bar.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'preference will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'OCR.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickPreferenceOnToolsBar($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPreferencesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_10To125() 
	$FileList=_FileListToArray($sOCR_LANGUAGES_SMAPLE_PATH, "*", 1)
	If @error Then Return False
	Local $hPMHandle = '',$hThumbnailView = ''
	Common_Del_DB()	
	Common_InitializeStatus()
	InitializeStatusForPageViewer()	
	If Assign('hPMHandle', Common_Run_PageManager_Ex('PageViewer7_3_10To125()', $sLogFileName1)) And $hPMHandle == '' Then Return False
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, 'PageViewer7_3_10To125()', $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, 'PageViewer7_3_10To125()', $sLogFileName1)) And $hThumbnailView == '' Then Return False
	For $i = 0 to 57	
		If $i == 0 Then
			Local $TestCaseID = '7.3.' & 10 +  $i 
			Local $TestCaseID2 = '7.3.' & 11 +  $i
		Else
			Local $TestCaseID = '7.3.' & 10 +  $i + $i 
			Local $TestCaseID2 = '7.3.' & 11 +  $i + $i 
		EndIf	
		Local $sStep1 = '1:'   &  $FileList[$i + 1]
		Local $sStep2 = '2:'   &  ''
		Local $sStep3 = '3:'   &  ''
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = '' &  ''
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hPMHandle = '', $hPageViewer = ''
		If ($i + 1) < $FileList[0] Then
			FileCopy($sOCR_LANGUAGES_SMAPLE_PATH & $FileList[$i + 1], $sFunctionFolderPath, 1)
		EndIf
		ControlClick($hPMHandle,"",$sPreferencesButtonInToolbarCtrInfo) ;Preferences
		If Not WinWait($sPreferencesWnd, '', 5) Then Return False
		Common_SleepInSeconds(1)
		Local $hPtable=ControlGetHandle($sPreferencesWnd,"",$sPreferencesTabControl)
		_GUICtrlTab_ClickTab($hPtable, $sOCRLableIndex, "left")   
		Common_SleepInSeconds(1)
		Local $hPlist=ControlGetHandle($sPreferencesWnd,"",$sOCRLanguageListBox)
		_GUICtrlListBox_SetCurSel($hPlist, $i)
		Common_SleepInSeconds(1)
		ControlClick($sPreferencesWnd,"",1)		
		Common_SleepInSeconds(1)
		Send('{F5}')
		Common_SleepInSeconds(2)
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(0.5)
		ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
		Common_SleepInSeconds(35)	
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		ClickMouseButtonInPageviwerView('right')
		If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
		If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID2) Then Return False	
		Common_SetSaveAsFormat('Rich Text Format(*.RTF)')
		If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False
		Common_SleepInSeconds(2)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		If Common_CompareFile($sPerformResultPath & $TestCaseID2 & '.rtf', $sCorrectResultPath & $TestCaseID2 & '.rtf') Then
			Common_WriteLog($sPass, $TestCaseID2, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & 'Please compare saved RTF file' & @CRLF , $TestCaseID2, $sLogFileName1,'')
		EndIf	
		ExitPageViewerByClickCloseButton($hPageViewer)	
		FileDelete($sFunctionFolderPath & $FileList[$i + 1])	
	Next
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_132() 
	Local $TestCaseID = '7.3.132'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder"
	Local $sStep2 = '2:'   &  'select 100dpi sample'
	Local $sStep3 = '3:'   &  'switch to page view click ocr button.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.The OCR procedure dialog will pop up then switch to OCR view.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_134() 
	Local $TestCaseID = '7.3.134'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder"
	Local $sStep2 = '2:'   &  'select 300dpi sample'
	Local $sStep3 = '3:'   &  'switch to page view click ocr button.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.The OCR procedure dialog will pop up then switch to OCR view.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_300DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer7_3_135() 
	Local $TestCaseID = '7.3.135'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder"
	Local $sStep2 = '2:'   &  'select 400dpi sample'
	Local $sStep3 = '3:'   &  'switch to page view click ocr button.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.The OCR procedure dialog will pop up then switch to OCR view.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_400DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_138() 
	Local $TestCaseID = '7.3.138'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'click delete ocr results on edit menu.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the view will switch to page view.(The image is sample of pageview)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Send('!e')
	Common_SleepInSeconds(0.5)
	Send('r')
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_140() 
	Local $TestCaseID = '7.3.140'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name empty'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_141() 
	Local $TestCaseID = '7.3.141'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Special character(-_@#$%)'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '7.3.141-_@#$%') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & '7.3.141-_@#$%' & '.bmp', $sCorrectResultPath & '7.3.141-_@#$%' & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_142() 
	Local $TestCaseID = '7.3.142'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?"<>|') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_143() 
	Local $TestCaseID = '7.3.143'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, ' ') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_144() 
	Local $TestCaseID = '7.3.144'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in middle of name'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '7.3.  144') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & '7.3.  144' & '.bmp', $sCorrectResultPath & '7.3.  144' & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_145() 
	Local $TestCaseID = '7.3.145'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Space in end of name'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '7.3.145  ') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_146() 
	Local $TestCaseID = '7.3.146'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sLONGEST_FILE_NAME) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_148() 
	Local $TestCaseID = '7.3.148'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'BMP.bmp') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_166() 
	Local $TestCaseID = '7.3.166'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button'
	Local $sStep4 = '4:'   &  'Select Compression table and save with default value'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_167() 
	Local $TestCaseID = '7.3.167'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button'
	Local $sStep4 = '4:'   &  'Select Compression table and save with Max high compression'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')
	If Not ClickSaveAs_PropertyBtn($TestCaseID, $sLogFileName1) Then Return False
	If Not SetJPGMaxHighCompression($TestCaseID, $sLogFileName1) Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_168() 
	Local $TestCaseID = '7.3.168'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with short key("Ctrl+S")'
	Local $sStep3 = '3:'   &  'save as JPEG,Click the Property button'
	Local $sStep4 = '4:'   &  'Select Compression table and save with Max high qualilty'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	Common_SetSaveAsFormat('JPEG(*.JPG)')
	If Not ClickSaveAs_PropertyBtn($TestCaseID, $sLogFileName1) Then Return False
	If Not SetJPGMaxHighQualilty($TestCaseID, $sLogFileName1) Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.jpg', $sCorrectResultPath & $TestCaseID & '.jpg') Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_169() 
	Local $TestCaseID = '7.3.169'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with context menu on work area.'
	Local $sStep3 = '3:'   &  'save as any format.'
	Local $sStep4 = '4:'   &  'Click "setting" button,select "save image with annotations,the annotaion can be seen in all iamge apllication" option,Click "OK" button,Click "save" button'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'SaveAll')	Then Return False	 
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_170() 
	Local $TestCaseID = '7.3.170'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with context menu on work area.'
	Local $sStep3 = '3:'   &  'save as any format.'
	Local $sStep4 = '4:'   &  'Click "setting" button,select "save image with annotations,the annotaion only can be seen in presto! pagemanager" option,Click "OK" button,Click "save" button'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'OnlyInPM')	Then Return False	 
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_171() 
	Local $TestCaseID = '7.3.171'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with context menu on work area.'
	Local $sStep3 = '3:'   &  'save as any format.'
	Local $sStep4 = '4:'   &  'Click "setting" button,select "save image without annotations" option,Click "OK" button,Click "save" button'
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'DontSave')	Then Return False	 
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer7_3_172() 
	Local $TestCaseID = '7.3.172'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose image folder,Select the image,switch to ocr View"
	Local $sStep2 = '2:'   &  'Open the Save as window with context menu on file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'BW_100DPI.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	Common_SleepInSeconds(0.5)
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, '', $sOCRButtonInToolbarCtrInfo)
	Common_SleepInSeconds(20)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False	 
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_1() 
	Local $TestCaseID = '8.1.1'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'html'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_2() 
	Local $TestCaseID = '8.1.2'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'htm'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_3() 
	Local $TestCaseID = '8.1.3'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Thumbnail view,select the selected format."
	Local $sStep2 = '2:'   &  'htm'
	Local $sStep3 = '3:'   &  "Right click content menu,to select 'Switch view to->page view'"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SwitchPageviewerFromContextMenu($hThumbnailView, 0)
	Common_SleepInSeconds(3)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_4() 
	Local $TestCaseID = '8.1.4'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'html'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_1_5() 
	Local $TestCaseID = '8.1.5'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'htm'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_6() 
	Local $TestCaseID = '8.1.6'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to List view,select the selected format."
	Local $sStep2 = '2:'   &  'htm'
	Local $sStep3 = '3:'   &  "Right click content menu,to select 'Switch view to->page view'"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToListViewButtonCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SwitchPageviewerFromContextMenu($hThumbnailView, 0)
	Common_SleepInSeconds(3)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_7() 
	Local $TestCaseID = '8.1.7'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Tile view,select the selected format."
	Local $sStep2 = '2:'   &  'html'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToTitleViewButtonInCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_1_8() 
	Local $TestCaseID = '8.1.8'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Tile view,select the selected format."
	Local $sStep2 = '2:'   &  'html'
	Local $sStep3 = '3:'   &  'Click page view button on Tools bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToTitleViewButtonInCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_1_9() 
	Local $TestCaseID = '8.1.9'
	Local $sStep1 = '1:'   &  "Launch PageManger,In tree view, choose folder,Switch to Tile view,select the selected format."
	Local $sStep2 = '2:'   &  'html'
	Local $sStep3 = '3:'   &  "Right click content menu,to select 'Switch view to->page view'"
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTM.htm', $sFunctionFolderPath, 1)
	ControlClick($hPMHandle, '', $sSwicthToTitleViewButtonInCtrInfo)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SwitchPageviewerFromContextMenu($hThumbnailView, 0)
	Common_SleepInSeconds(3)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_2_1() 
	Local $TestCaseID = '8.2.1'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'Check tools bar and menu'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the toos bar and menu will display correctly.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_2_2() 
	Local $TestCaseID = '8.2.2'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'click open on file menu to open html file.'
	Local $sStep3 = '3:'   &  'open image,pdf,document files'
	Local $sStep4 = '4:'   &  'click open'
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is PDF-Single page.pdf)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_3() 
	Local $TestCaseID = '8.2.3'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a html on file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_4() 
	Local $TestCaseID = '8.2.4'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a html on file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_5() 
	Local $TestCaseID = '8.2.5'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'click right-key on file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as","Print","delete","properties" will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(1.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_6() 
	Local $TestCaseID = '8.2.6'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'open document,PDF file,select other document,PDF on file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected.(The image is PDF-Single page.pdf)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_7() 
	Local $TestCaseID = '8.2.7'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a html on file list.'
	Local $sStep3 = '3:'   &  'click down button on keyboard.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view((The image is HTM.htm))'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{DOWN}')
	Common_SleepInSeconds(1)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_8() 
	Local $TestCaseID = '8.2.8'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a html on file list.'
	Local $sStep3 = '3:'   &  'click up button on keyboard.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It will switch to HTML view((The image is HTML.html))'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Send('{UP}')
	Common_SleepInSeconds(1)	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_2_9() 
	Local $TestCaseID = '8.2.9'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a single page html  on thumbnail list'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected.((The image is HTML.html))'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_2_10() 
	Local $TestCaseID = '8.2.10'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a single page html  on thumbnail list'
	Local $sStep3 = '3:'   &  'click right-key on file list.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as",""Print"","delete page"will be display.The"delete page" will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(1.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_12() 
	Local $TestCaseID = '8.2.12'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'select a single page html  on thumbnail list'
	Local $sStep3 = '3:'   &  'check tool  bar for page editbox.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_2_19() 
	Local $TestCaseID = '8.2.19'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'view status bar'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_20() 
	Local $TestCaseID = '8.2.20'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'open a new html to page viewer.'
	Local $sStep3 = '3:'   &  'view status bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_21() 
	Local $TestCaseID = '8.2.21'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'open a new html to page viewer.'
	Local $sStep3 = '3:'   &  'open  same html to page viewer.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the alert message will pops up.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sFunctionFolderPath & 'HTML.html', $TestCaseID, $sLogFileName1) Then Return False
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_22() 
	Local $TestCaseID = '8.2.22'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'choose other file on file list.'
	Local $sStep3 = '3:'   &  'view status bar'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'HTM.htm', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_26() 
	Local $TestCaseID = '8.2.26'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'Click properties option from file menu'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenFilePropertiesFromFileMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_2_27() 
	Local $TestCaseID = '8.2.27'
	Local $sStep1 = '1:'   &  "Launch PageManager,choose a html file switch to html view."
	Local $sStep2 = '2:'   &  'Click properties option from file list.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Send('{UP}')
	Common_SleepInSeconds(0.3)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer8_3_5() 
	Local $TestCaseID = '8.3.5'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose html folder,Select the html,switch to html View"
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name empty'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_3_7() 
	Local $TestCaseID = '8.3.7'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose html folder,Select the html,switch to html View"
	Local $sStep2 = '2:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)'
	Local $sStep3 = '3:'   &  'Change the File Name empty'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?"<>|') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_3_8() 
	Local $TestCaseID = '8.3.8'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose html folder,Select the html,switch to html View"
	Local $sStep2 = '2:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, ' ') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_3_11() 
	Local $TestCaseID = '8.3.11'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose html folder,Select the html,switch to html View"
	Local $sStep2 = '2:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sLONGEST_FILE_NAME) Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer8_3_13() 
	Local $TestCaseID = '8.3.13'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose html folder,Select the html,switch to html View"
	Local $sStep2 = '2:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Existed name'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'HTML.html', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf') Then Return False	
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK') Then Return False	 
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer9_1_3() 
	Local $TestCaseID = '9.1.3'
	Local $sStep1 = '1:'   &  "Launch PM.select 8bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 9 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '8_Bit_Gray.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_4() 
	Local $TestCaseID = '9.1.4'
	Local $sStep1 = '1:'   &  "Launch PM.select 8bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click undo/redo'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 4 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '8_Bit_Gray.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	For $i = 0 to 4
		Send('!e')
		Common_SleepInSeconds(0.5)
		Send('o')   ;Undo
		Common_SleepInSeconds(0.3)
	Next
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_5() 
	Local $TestCaseID = '9.1.5'
	Local $sStep1 = '1:'   &  "Launch PM.select 8bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click "ctrl+z"/"ctrl+y.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 6 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '8_Bit_Gray.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	For $i = 0 to 4
		Send('^z')
		Common_SleepInSeconds(0.3)
	Next
	
	For $i = 0 to 1
		Send('^y')
		Common_SleepInSeconds(0.3)
	Next	
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer9_1_6() 
	Local $TestCaseID = '9.1.6'
	Local $sStep1 = '1:'   &  "Launch PM.select 8bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add image edit ->eraser it,deskew iamge,crop.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There image) is deskview, crop and has eraser'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '8_Bit_Gray.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	UseEraserInPageviewer()
	
	CropAnAreaInPageviewer()
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_7() 
	Local $TestCaseID = '9.1.7'
	Local $sStep1 = '1:'   &  "Launch PM.select 8bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add image edit ->eraser it,deskew iamge,crop.'
	Local $sStep3 = '3:'   &  'click undo/redo'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There image is deskview and has eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '8_Bit_Gray.jpg', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	UseEraserInPageviewer()
	
	CropAnAreaInPageviewer()
	
	Send('^z')
	Common_SleepInSeconds(0.5)
	Send('^z')
	Common_SleepInSeconds(0.5)
	Send('^y')
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_10() 
	Local $TestCaseID = '9.1.10'
	Local $sStep1 = '1:'   &  "Launch PM.select 16bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 9 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '16_Bit_Gray_360.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_11() 
	Local $TestCaseID = '9.1.11'
	Local $sStep1 = '1:'   &  "Launch PM.select 16bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click undo/redo'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 4 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '16_Bit_Gray_360.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	For $i = 0 to 4
		Send('!e')
		Common_SleepInSeconds(0.5)
		Send('o')   ;Undo
		Common_SleepInSeconds(0.3)
	Next
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_12() 
	Local $TestCaseID = '9.1.12'
	Local $sStep1 = '1:'   &  "Launch PM.select 16bit-gray sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click "ctrl+z"/"ctrl+y.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 6 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & '16_Bit_Gray_360.TIF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',270, 267, 375, 269)
	MouseClickDrag('left',270, 267, 444, 265)
	MouseClickDrag('left',270, 267, 630, 273)
	MouseClickDrag('left',270, 267, 876, 282)
	MouseClickDrag('left',270, 267, 692, 618)
	MouseClickDrag('left',270, 267, 550, 618)
	MouseClickDrag('left',270, 267, 500, 273)
	
	For $i = 0 to 4
		Send('^z')
		Common_SleepInSeconds(0.3)
	Next
	
	For $i = 0 to 1
		Send('^y')
		Common_SleepInSeconds(0.3)
	Next	
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_17() 
	Local $TestCaseID = '9.1.17'
	Local $sStep1 = '1:'   &  "Launch PM.select 32bit-color sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 8 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '32_Bit_Color.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',273, 153, 375, 269)
	MouseClickDrag('left',273, 153, 444, 265)
	MouseClickDrag('left',273, 153, 630, 273)
	MouseClickDrag('left',273, 153, 876, 282)
	MouseClickDrag('left',273, 153, 692, 618)
	MouseClickDrag('left',273, 153, 550, 618)
	MouseClickDrag('left',273, 153, 500, 273)
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_18() 
	Local $TestCaseID = '9.1.18'
	Local $sStep1 = '1:'   &  "Launch PM.select 32bit-color sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click undo/redo'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 3 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '32_Bit_Color.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',273, 153, 375, 269)
	MouseClickDrag('left',273, 153, 444, 265)
	MouseClickDrag('left',273, 153, 630, 273)
	MouseClickDrag('left',273, 153, 876, 282)
	MouseClickDrag('left',273, 153, 692, 618)
	MouseClickDrag('left',273, 153, 550, 618)
	MouseClickDrag('left',273, 153, 500, 273)
	
	For $i = 0 to 4
		Send('!e')
		Common_SleepInSeconds(0.5)
		Send('o')   ;Undo
		Common_SleepInSeconds(0.3)
	Next
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_19() 
	Local $TestCaseID = '9.1.19'
	Local $sStep1 = '1:'   &  "Launch PM.select 32bit-color sample->switch to image view."
	Local $sStep2 = '2:'   &  'add some annotation ->copy it/paste it for 10times'
	Local $sStep3 = '3:'   &  'click "ctrl+z"/"ctrl+y.'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There 5 highlight annotation in image)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '32_Bit_Color.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;add highlight
	MouseClick('left',1242, 213)   ;highlight button
	MouseClickDrag('left',429, 357, 499, 427)
	MouseClick('left',1183, 147)   ;seleft anno button
	MouseClick('left',456, 400)   ;seleft anno 
	Send('^c')
	For $i = 0 to 9
		Send('^v')
		Common_SleepInSeconds(0.3)
	Next
	MouseClickDrag('left',273, 153, 375, 269)
	MouseClickDrag('left',273, 153, 444, 265)
	MouseClickDrag('left',273, 153, 630, 273)
	MouseClickDrag('left',273, 153, 876, 282)
	MouseClickDrag('left',273, 153, 692, 618)
	MouseClickDrag('left',273, 153, 550, 618)
	MouseClickDrag('left',273, 153, 500, 273)
	
	For $i = 0 to 4
		Send('^z')
		Common_SleepInSeconds(0.3)
	Next
	
	For $i = 0 to 1
		Send('^y')
		Common_SleepInSeconds(0.3)
	Next	
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc

Func PageViewer9_1_20() 
	Local $TestCaseID = '9.1.20'
	Local $sStep1 = '1:'   &  "Launch PM.select 32bit-color sample->switch to image view."
	Local $sStep2 = '2:'   &  'add image edit ->eraser it,deskew iamge,crop.'
	Local $sStep3 = '3:'   &  ''
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There image) is deskview, crop and has eraser'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '32_Bit_Color.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	UseEraserInPageviewer()
	
	CropAnAreaInPageviewer()
	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer9_1_21() 
	Local $TestCaseID = '9.1.21'
	Local $sStep1 = '1:'   &  "Launch PM.select 32bit-color sample->switch to image view."
	Local $sStep2 = '2:'   &  'add image edit ->eraser it,deskew iamge,crop.'
	Local $sStep3 = '3:'   &  'click undo/redo'
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'check results will display correctly.(There image is deskview and has eraser)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & '32_Bit_Color.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	
	;Deskew
	OpenImageMenu()
	Send('w')
	Common_SleepInSeconds(0.5)
	DeskewinPageviwer()
	SelectMoveOptionImageMenu()
	
	UseEraserInPageviewer()
	
	CropAnAreaInPageviewer()
	
	Send('^z')
	Common_SleepInSeconds(0.5)
	Send('^z')
	Common_SleepInSeconds(0.5)
	Send('^y')
	Common_SleepInSeconds(1)
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)
EndFunc
 
Func PageViewer9_1_22()   
	Local $TestCaseID = '9.1.22'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.22.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.22.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_23()   
	Local $TestCaseID = '9.1.23'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.23.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.23.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(1.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_24()   
	Local $TestCaseID = '9.1.24'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_25()   
	Local $TestCaseID = '9.1.25'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_26()   
	Local $TestCaseID = '9.1.26'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click find next button."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is highlight)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickSearchNextInSearchandRedactWnd($TestCaseID, $sLogFileName1, True) Then Return False	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
   
Func PageViewer9_1_27()   
	Local $TestCaseID = '9.1.27'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
		Common_SleepInSeconds(0.5)
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_28()   
	Local $TestCaseID = '9.1.28'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(All string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
		Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_29()   
	Local $TestCaseID = '9.1.29'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  "click find next button."
	Local $sRes   = 'Res:' &  "the alert message will pops up.(No search found)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SinglePageText.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	ControlClick($sSearchandRedactWnd, '',1120 )
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_30()   
	Local $TestCaseID = '9.1.30'
	Local $sStep1 = '1:'   &  "Launch PM.select Image-BW.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.30.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'IMAGE_BW.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_SleepInSeconds(2)
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.30.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(10)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_31()   
	Local $TestCaseID = '9.1.31'
	Local $sStep1 = '1:'   &  "Launch PM.select image-color.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.31.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'IMAGE_BW.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_SleepInSeconds(2)
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.31.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(10)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	Common_SleepInSeconds(2)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_32()   
	Local $TestCaseID = '9.1.32'
	Local $sStep1 = '1:'   &  "Launch PM.select Image-BW.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'IMAGE_BW.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_SleepInSeconds(2)
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_33()   
	Local $TestCaseID = '9.1.33'
	Local $sStep1 = '1:'   &  "Launch PM.select Image-BW.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'IMAGE_BW.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_SleepInSeconds(2)
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_38()   
	Local $TestCaseID = '9.1.38'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.38.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.38.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1.5)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_39()   
	Local $TestCaseID = '9.1.39'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.39.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.39.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_40()   
	Local $TestCaseID = '9.1.40'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(3)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_41()   
	Local $TestCaseID = '9.1.41'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_42()   
	Local $TestCaseID = '9.1.42'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click find next button."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'for' is highlight)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'for') Then Return False	
	If Not ClickSearchNextInSearchandRedactWnd($TestCaseID, $sLogFileName1, True) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_43()   
	Local $TestCaseID = '9.1.43'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'for' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'for') Then Return False	
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(1)
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(1)
	Send('{ESC}')
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_44()   
	Local $TestCaseID = '9.1.44'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(All string of 'for' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'for') Then Return False	
	Common_SleepInSeconds(2)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(3)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	Send('{ESC}')
	Common_SleepInSeconds(3)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_45()   
	Local $TestCaseID = '9.1.45'
	Local $sStep1 = '1:'   &  "Launch PM.select protected-PDF-PW1.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  "click find next button."
	Local $sRes   = 'Res:' &  "the alert message will pops up.(No search found)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Protected_PDF_PW1.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	Common_SleepInSeconds(8)
	WinActivate($sPasswordWnd)
	Common_SleepInSeconds(0.5)
	Send('1')
	Common_SleepInSeconds(1)
	Send('{ENTER}')
	Common_SleepInSeconds(4)	
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'for') Then Return False	
	Common_SleepInSeconds(3)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(2)
	ControlClick($sSearchandRedactWnd, '',1120 )
	Common_SleepInSeconds(4)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_46()   
	Local $TestCaseID = '9.1.46'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.46.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.46.testtesttesttest)') Then Return False
	Common_SleepInSeconds(2)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_47()   
	Local $TestCaseID = '9.1.47'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.47.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.47.testtesttesttest)') Then Return False
	Common_SleepInSeconds(4)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_48()   
	Local $TestCaseID = '9.1.48'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_49()   
	Local $TestCaseID = '9.1.49'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_50()   
	Local $TestCaseID = '9.1.50'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click find next button."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is highlight)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickSearchNextInSearchandRedactWnd($TestCaseID, $sLogFileName1, True) Then Return False	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_51()   
	Local $TestCaseID = '9.1.51'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
		Common_SleepInSeconds(0.5)
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_52()   
	Local $TestCaseID = '9.1.52'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(All string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
		Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_53()   
	Local $TestCaseID = '9.1.53'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  "click find next button."
	Local $sRes   = 'Res:' &  "the alert message will pops up.(No search found)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'TextAndImage.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	ControlClick($sSearchandRedactWnd, '',1120 )
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_62()   
	Local $TestCaseID = '9.1.62'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.62.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.62.testtesttesttest)') Then Return False
	Common_SleepInSeconds(2)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_63()   
	Local $TestCaseID = '9.1.63'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.63.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.63.testtesttesttest)') Then Return False
	Common_SleepInSeconds(4)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(5)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(4)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_64()   
	Local $TestCaseID = '9.1.64'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_65()   
	Local $TestCaseID = '9.1.65'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_66()   
	Local $TestCaseID = '9.1.66'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click find next button."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'inc' is highlight)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'inc') Then Return False	
	If Not ClickSearchNextInSearchandRedactWnd($TestCaseID, $sLogFileName1, True) Then Return False	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_67()   
	Local $TestCaseID = '9.1.67'
	Local $sStep1 = '1:'   &  "Launch PM.select form-E.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'inc' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'inc') Then Return False	
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
		Common_SleepInSeconds(0.5)
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_68()   
	Local $TestCaseID = '9.1.68'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(All string of 'inc' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'inc') Then Return False	
		Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_69()   
	Local $TestCaseID = '9.1.69'
	Local $sStep1 = '1:'   &  "Launch PM.select text and image.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  "click find next button."
	Local $sRes   = 'Res:' &  "the alert message will pops up.(No search found)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'Form_E.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left',926, 244,995, 302)
	Common_SleepInSeconds(1)
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'inc') Then Return False	
	Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	ControlClick($sSearchandRedactWnd, '',1120 )
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_70()   
	Local $TestCaseID = '9.1.70'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.70.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.70.testtesttesttest)') Then Return False
	Common_SleepInSeconds(1)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_71()   
	Local $TestCaseID = '9.1.71'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   & 'Click Bates Number->click add.'
	Local $sStep3 = '3:'   &  "add any number to PDF.save it.close page view open it again.."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "the Bates Number will be display correctly.(Add string (9.1.71.testtesttesttest) in PDF"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not  ClickBaseNumberingAdd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetTextInBatesNumbering($TestCaseID, $sLogFileName1, '(9.1.71.testtesttesttest)') Then Return False
	Common_SleepInSeconds(2)
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sBatesNumberingWnd) Then Return False	
	Common_SleepInSeconds(4)
	ExitPageViewerByClickCloseButton($hPageViewer)
	Common_SleepInSeconds(2)
	Send('{ENTER}')
	Common_SleepInSeconds(3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_72()   
	Local $TestCaseID = '9.1.72'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "default setting on redaction option."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(there black area in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(2)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_73()   
	Local $TestCaseID = '9.1.73'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "Add Redaction"'
	Local $sStep3 = '3:'   &  "Set Redacted Area Fill Color option is whithe,checkin  'use Overlay Text,set  'Overlay Text'is last posation.set font color is black.other setting is default."
	Local $sStep4 = '4:'   &  "input any string on custom text.(such as (g,I,h,@,?,&,*))"
	Local $sRes   = 'Res:' &  "check results will display correctly..(g,I,h,@,?,&,* in pdf)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionAdd_($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sRedactionOptionsWnd, '', 1059)	;checkin  'use Overlay Text
	Common_SleepInSeconds(0.5)
	ControlClick($sRedactionOptionsWnd, '', 1058)
	Common_SleepInSeconds(1.5)
	MouseClick('left', 619, 517)  ;White color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(0.5)	
	ControlClick($sRedactionOptionsWnd, '', 1061)   
	Common_SleepInSeconds(1.5)
	MouseClick('left', 435, 515)  ;font color
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sColorWnd) Then Return False	
	Common_SleepInSeconds(1)	
	ControlSetText($sRedactionOptionsWnd, '', 1116, 'g,I,h,@,?,&,*')
	Common_SleepInSeconds(1)	
	If Not ClickOKButtonOfWnd($TestCaseID, $sLogFileName1, $sRedactionOptionsWnd) Then Return False	
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_74()   
	Local $TestCaseID = '9.1.74'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click find next button."
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is highlight)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickSearchNextInSearchandRedactWnd($TestCaseID, $sLogFileName1, True) Then Return False	
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
  
Func PageViewer9_1_75()   
	Local $TestCaseID = '9.1.75'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(The string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
		Common_SleepInSeconds(0.5)
	If Not ClickRedactInSearchandRedactWnd($TestCaseID, $sLogFileName1) Then Return False	
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
 
Func PageViewer9_1_76()   
	Local $TestCaseID = '9.1.76'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "check results will display correctly.(All string of 'card' is black)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
		Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(0.5)
	Send('{ESC}')
	Common_SleepInSeconds(1.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer9_1_77()   
	Local $TestCaseID = '9.1.77'
	Local $sStep1 = '1:'   &  "Launch PM.select Searchable PDF.PDF sample->switch to PDF view."
	Local $sStep2 = '2:'   &  'Click "redaction"->click "search and Redaction",input correct string on search and redactin dialog.'
	Local $sStep3 = '3:'   &  "click redaction button"
	Local $sStep4 = '4:'   &  "click find next button."
	Local $sRes   = 'Res:' &  "the alert message will pops up.(No search found)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($COMMON_SAMPLES_FOLDER_PATH & 'SearchablePDF.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectTxtInPDF()
	If Not ClickRedactionFind($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSrachContentInSearchandRedactWnd($TestCaseID, $sLogFileName1, 'card') Then Return False	
	Common_SleepInSeconds(1.5)
	ControlClick($sSearchandRedactWnd, '',1122 )
	Common_SleepInSeconds(2)
	Send('{ESC}')
	Common_SleepInSeconds(1)
	ControlClick($sSearchandRedactWnd, '',1120 )
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
;  ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViwerAlertTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False